﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace Day2
{
    public partial class MyProfilePage : PhoneApplicationPage
    {
        public MyProfilePage()
        {
            InitializeComponent();
			//bool a = rd01.IsChecked.Value;
			//bool b = rd01.IsChecked.Value;
			//bool c = chk01.IsChecked.Value;
			//string str = txtAboutMe.Text;
			//DateTime t =	myTime.Value;			
			//DateTime d = myDate.Value;
        }

        private void sliderMonth_ValueChanged(object sender, System.Windows.RoutedPropertyChangedEventArgs<double> e)
        {
        		// TODO: Add event handler implementation here.
                //if(sliderMonth != null)
                //    txtDisplayMonth.Text = ((int)sliderMonth.Value).ToString();
        }

        private void myWeb_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
        	// TODO: Add event handler implementation here.
			myWeb.Source = new Uri("http://kapook.com",UriKind.Absolute);
			myProgressbar.IsIndeterminate = true;
			myWeb.Navigated += new System.EventHandler<System.Windows.Navigation.NavigationEventArgs>(myWeb_Navigated);
			//myProgressbar.Value = 10; //Manual Update
			//string myHtml = "<html><body><h1>Hello World!</h1></body></html>";
			//myWeb.NavigateToString(myHtml);
        }

        private void myWeb_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
        {
        	//myProgressbar.IsIndeterminate = false;
        }
    }
}
